/**
 * Application Application.java
 */

package CCT220_Aula17_Exercicio03_13106;


import java.awt.Graphics;

import javax.swing.JApplet;


/**
 * </br>******************************
 * </br>Project: CCT220
 * </br>Package: CCT220_Aula17_Exercicio03_13106
 * </br>Class: Application
 * </br>Last Change: 26/10/2011 21:01:44 by marcel
 * </br>Description:
 * </br>******************************</br>
 * 
 * @author marcel
 * @author 13106
 * 
 */
public class Application extends JApplet {

	String firstApplet = null;


	@Override
	public void init() {

		firstApplet = this.getParameter("user");
		this.paint(this.getGraphics());
	}


	@Override
	public void start() {

	}


	@Override
	public void stop() {

	}


	@Override
	public void destroy() {

	}


	@Override
	public void paint(Graphics g) {

		if (firstApplet != null) {
			g.drawString("Ola " + firstApplet, 50, 15);
		} else {
			g.drawString("Ola pra voce", 50, 15);
		}

	}

}
